package com.lu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lu.model.entity.SysResources;
import com.lu.model.request.ResourcesQueryRequest;

import java.util.List;

/**
 * <p>
 * 资源表 服务类
 * </p>
 *
 * @author zhanglu
 * @since 2022-07-26
 */
public interface SysResourcesService extends IService<SysResources> {

  Long addResources(SysResources resources);

  SysResources updateResources(SysResources resources);

  Integer updateStatus(Long id, Integer status);

  String deleteResources(Long id);

  Page<SysResources> pageList(ResourcesQueryRequest request);

  List<SysResources.TreeNodes> getListByPid(Long pid, Integer status);

  List<SysResources> sort(List<Long> ids);

}
